<?php
	function get_hcard(){
		global $settings;
		$n = "\r\n";	// newline
		$t = "\t";		// tab
		$hcard = '<div class="vcard">';
			$hcard .= $n.$t.'<strong class="org fn">'.$settings['contact_info']['org'].'</strong>';
			// address
			$hcard .= $n.$t.'<address class="adr">'.$n.$t.$t.'<span class="street-address">'.$settings['contact_info']['contact']['street'].'</span>';
			$hcard .= $n.$t.$t.'<span class="locality">'.$settings['contact_info']['contact']['locality'].'</span>';
			$hcard .= $n.$t.$t.'<span class="region">'.$settings['contact_info']['contact']['region'].'</span>';
			$hcard .= $n.$t.$t.'<span class="postal-code">'.$settings['contact_info']['contact']['postal-code'].'</span>'.$n.$t.'</address>';
			// telephone
			$hcard .= $n.$t.'<span class="tel">'.$settings['contact_info']['contact']['tel'].'</span>';
		$hcard .= $n.'</div>'.$n;
		return($hcard);
	};
?>